from google.appengine.ext.db import djangoforms as forms
from django import newforms
from com.jumang.model.note import note
from com.jumang.model.uploadfile import file
from com.jumang.model.FileCategory import FileCategory,PictureCategory
from com.jumang.model.NoteCategory import NoteCategory

class NoteForm(forms.ModelForm):
    tags=newforms.CharField(required=False)
    writeLocation=newforms.CharField(required=False)
    category=newforms.CharField()
    class Meta:
        model = note
        exclude = ['jumCategory','createTime','jumLocation','refResult']
        
class FileForm(forms.ModelForm):
    category=newforms.CharField()
    class Meta:
        model = file
        exclude = ['jumCategory','createTime']
        
class FileCategoryForm(forms.ModelForm):
    class Meta:
        model = FileCategory
        exclude = ['createTime']
class PictureCategoryForm(forms.ModelForm):
    class Meta:
        model = PictureCategory
        exclude = ['createTime']


class NoteCategoryForm(forms.ModelForm):
    class Meta:
        model = NoteCategory
        exclude = ['createTime']



